<?php

function send_load_attendance()
{
   if(isset($_SESSION['logged_in']))
      return true;
   else
      return false;
}

function send_menu_attendance()
{
   if($_SESSION['permissions'] == "Faculty")
      return "<br><a href=?q=mark_attendance>Mark Attendance</a>";
   else if($_SESSION['permissions'] == "Student")
      return "<br><a href=?q=view_attendance>View Attendance</a>";
}

function send_content_attendance()
{
   if(isset($_GET['q']))
   {
      if($_GET['q'] == "view_attendance")
      {
         $content ='
                    <script language="JavaScript" src="include/calendar/jquery-1.3.2.min.js"></script>
                    <script language="JavaScript" src="include/calendar/cal.js"></script>
                    <script language="JavaScript" src="include/calendar/cal2.js"></script>
	            <input class="one" type="text" name="date" value="" />
                   ';
         return $content;    
      }
      else if($_GET['q'] == "attendance_submit")
      {
         return "Thank you for marking attendance";
      }  
   }
}

function send_content_other_attendance()
{

}

?>
